package com.jianli.smart.aop.demo;


public class TestAop {

	public static void main(String[] args) {
		// static proxy
		StaticProxy staticProxy = new StaticProxy();
		staticProxy.say();
		
		// jdk proxy
		Hello hello = new HelloImpl();
		JDKProxy jdkProxy = new JDKProxy(hello);
		Hello helloProxy = jdkProxy.getProxy();
		helloProxy.say();
		
		// cglib proxy
		CglibProxy.getInstance().getProxy(HelloImpl.class).say();
		
	}

}
 